/*$Id: TableModelService.java 267 2008-04-30 14:42:06Z lrsmith $*/
package com.leetech.gwt.client;



import com.google.gwt.user.client.rpc.RemoteService;

/**
 * This service is implemented by servlets that will retrieve data from a
 * database to display in a table using a
 * {@link nreldata.nbc.gwt.client.scrolltable.RemoteTableModel}
 *
 * @author lrsmith
 *
 */
public interface TableModelService extends RemoteService {

    // Static initialization-------------------------------------------
    // Instance variables----------------------------------------------
    // Constructors----------------------------------------------------
    // Methods---------------------------------------------------------
    /**
     * Requests additional rows from the server to display to the client.
     *
     * @param request
     *            an object containing the first row requested and the number of
     *            rows requested.
     * @return an object containing the requested data.
     * @throws Exception 
     */
    RemoteTableModel.Response requestRows(RemoteTableModel.Request request) throws Exception;


    // Inner Classes --------------------------------------------------
}
